from py_page.base_page import BasePage


class DiscussionPage(BasePage):
    #path = r"C:\Users\37210\Desktop\测开班_16\app_ui_frame16\py_yaml\discussion_page.yaml"
    path = BasePage.get_path("/py_yaml/discussion_page.yaml")

    def get_discussion_list(self):
        eles = self.run_steps(self.path, "get_discussion_list")
        res_list = [ele.get_attribute("text") for ele in eles]
        return res_list